// const config = require('../../static/config.js');
import config from '../../static/config';
const getters = {
  isAdmin: state => state.user.isAdmin,
  isUpdate: state => state.app.isUpdate,
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  seoTitle: state => state.app.seoTitle,
  title: state => state.app.title,
  needAvatar: state => state.app.needAvatar,
  token: state => state.user.token,
  id: state => state.user.id,
  SaaSId: state => state.user.SaaSId,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  status: state => state.user.status,
  userInfo: state => state.user,
  serverUrl: () => config.url,
  roles: state => state.user.roles,
  addRouters: state => state.permission.addRouters,
  permissionId: state => state.permission.permissionId,
  sidebarShowList: state => state.permission.sidebar,
  // 插件打开方式 1: '_blank',0: 'self'
  pluginOpenType: state => state.app.pluginOpenType,
  // 侧边栏logo栏
  sidebarLogo: state => state.permission.sidebarLogo
}
export default getters;
